package com.sun.mybatisplus.bean.dto;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("fr_budget_plan_element")
public class BudgetPlanElement {
    @ApiModelProperty(hidden = true)
    private String id;
    @ApiModelProperty(hidden = true)
    private String planId;
    private String budgetElementId;
    @ApiModelProperty(value = "要素级次,0 不控制 1 一级 2 二级",example = "0")
    private int budgetLevel;
    @ApiModelProperty(value = "要素在方案中的配置",example = "{\"required\":1}")
    @TableField("CONFIG")
    private JSONObject planConfig;

    public BudgetPlanElement(String id, String planId, String budgetElementId) {
        this.id = id;
        this.planId = planId;
        this.budgetElementId = budgetElementId;
    }
}
